Repository navigation
fix(mcpx): refresh stale vendorHash so the package (and home-manager generation) builds again (#3074) - #3088
Merged
Merged
Conversation
…suffix import (#3074) The #1678 elicit work (ff55530, f626032) added an import of golang.org/x/net/publicsuffix to internal/cli/elicit.go. x/net was already a required module, so go.mod/go.sum did not change — but the vendor tree did, and vendorHash was never updated. The fixed-output go-modules derivation kept substituting the old tree by hash, so the build failed with: cannot find module providing package golang.org/x/net/publicsuffix: import lookup disabled by -mod=vendor. Verified: go mod tidy is a no-op on go.mod/go.sum, a fresh go mod vendor includes publicsuffix, and the hash below is the one the sandbox vendor run produces.
With vendoring repaired the check phase reaches TestExamples, which fails on unmodified main — in the sandbox and under a plain go test alike: destructive example calls are never confirmed since the #1678 confirmation flow (tracked as #2896). Same interim pattern as the internal/conformance and internal/defaults exclusions above: the OS deploy is not the gate for that desync. Remove when #2896 lands.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 28 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root cause
The #1678 elicit work (ff55530, f626032) added an import of
golang.org/x/net/publicsuffixtointernal/cli/elicit.go. x/net was already a required module, sogo.mod/go.sumdid not change — but the vendor tree did, andvendorHashinpkgs/mcpx/package.nixwas never updated. Because the go-modules derivation is fixed-output, Nix kept substituting the old vendor tree by hash (itsgolang.org/x/nethasidnabut nopublicsuffix), so the build failed at compile time withcannot find module providing package golang.org/x/net/publicsuffix: import lookup disabled by -mod=vendor— and with it the whole home-manager generation (#3074).What changed (pkgs/mcpx/package.nix only; go.mod/go.sum untouched)
vendorHashsha256-B962TunDKasBWH+RXqvjwRRkKwUC1MtDkBEwFkWlhxA=→sha256-S5qXMMhYBghhjqQvzMARYliC9Dtvu+QJBTUsgpLl2TA=, harvested from a fresh sandboxgo mod vendorrun via the fakeHash mismatch. Verified beforehand:go mod tidyis a no-op on go.mod/go.sum, and a manualgo mod vendor(Go 1.27.2, module cache) producesvendor/golang.org/x/net/publicsuffixand lists it in modules.txt — the metadata was complete; only the hash was stale.examplesfrom the sandbox check phase, same pattern as the existinginternal/conformance/internal/defaultsentries. With vendoring repaired, the check phase reachesTestExamples, which fails on unmodified main — reproduced identically with a plaingo test ./examples/outside the sandbox: destructive example calls end "not confirmed: the answer was cancel" under the mcpx: Phase 3 of #1675 — review-first mcpx elicit surface + nix#255 truth-up #1678 confirmation flow. That failure is tracked as mcpx: e2e/examples cluster fails with 'may be destructive and was not confirmed' under the PR #2888 sharded suite — main's suite state is masked by #2795 #2896; this exclusion should be removed when it lands. Shout if you'd rather this commit ride separately.Verification (laptop, this branch)
nix build .#mcpxreproduces the exact mcpx package fails to build at main HEAD — vendored module gap (golang.org/x/net/publicsuffix) blocks home-manager generation #3074 error atinternal/cli/elicit.go:19:2.nix build .#mcpxexits 0 — compile plus the full check phase (every non-excluded test package ok); the built binary runs.nix build .#nixosConfigurations.amd.config.home-manager.users.user.home.activationPackage --dry-run: only 13 small derivations remain to build and the mcpx package is not among them.activationPackagebuild: exits 0, producing/nix/store/zvyn8bnkxnbyra22nbsb8ih8r1s5sj6f-home-manager-generation.Fixes #3074. Refs #2896.
Need help on this PR? Tag
@codesmith-botwith what you need.